<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<h:head>  
  		<link href="${request.contextPath}/css/estilo.css" rel="stylesheet" type="text/css" />
    </h:head> 
	
<h:body>
<ui:composition template="../WEB-INF/templates/templateMain.xhtml">
	<ui:define name="content">
	<h:form acceptcharset="ISO-8859-1">
	<br></br>
	<p:fieldset legend="Adicionar nova pergunta">
	<h:outputText value="Entre com o número de perguntas da sua Pesquisa e à seguir serão apresentadas as perguntas e as alternativas."/>
	<br></br>
	<br></br>
		<p:panelGrid columns="2">
		<h:messages/>
			<h:outputText value="Número de perguntas: "/>
			<h:inputText size="2" maxlength="2" value="#{perguntasBEAN.numeroDePerguntas}" required="true">
				<f:validateLength maximum="2" minimum="1"/>
			</h:inputText>
		</p:panelGrid>
		<br></br>
		<h:commandButton value="Cancelar" action="#{perguntasBEAN.acaoBotaoCancelar1}"/>
		<h:outputText value=" "/>
		<h:commandButton value="Proximo" action="#{perguntasBEAN.acaoBotaoProximo1}"/>
	</p:fieldset>
	</h:form>
	</ui:define>
</ui:composition>
</h:body>
</html>